package com.sqj.proxyPattern.staticProxy;

import com.sqj.proxyPattern.Order;
import com.sqj.proxyPattern.OrderServiceImpl;

import java.util.Date;

public class StaticProxyTest {
    public static void main(String[] args) {
        Order order = new Order();
        order.setCreateDatetime(new Date());
        OrderServiceStaticProxy orderServiceStaticProxy = new OrderServiceStaticProxy(new OrderServiceImpl());
        orderServiceStaticProxy.createOrder(order);
    }
}
